/*
@InterfaceName AssertInvokeService
@Date      2022/8/3
@Description TODO
@Author    SubUp
@version   1.0
*/
package com.sunjob.mrojobschedule.service;

import com.sunjob.common.result.Result;
import com.sunjob.mrojobschedule.config.ServiceFeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/* 调用微服务 资产管理 */
@FeignClient(value = "ASSETS",configuration = ServiceFeignConfiguration.class,url = "http://192.168.134.1:8081")
@Component
public interface AssertInvokeService {
    @RequestMapping("/getEntityByTypeAndID")
    public Result getEntityByTypeAndID(@RequestParam("entityId") Long entityId,
                                       @RequestParam("type") String type);
    //通过id获取instance实例
    @RequestMapping("/selectInstanceById")
    public Result selectInstanceById(@RequestParam("instanceId") Long instanceId);

    @RequestMapping("/getEntityByTypeAndTime")
    public Result getEntityTimeByLimity(@RequestParam("type") String type,@RequestParam("time") Integer timeType);

    @RequestMapping("/getEntityTime")
    public Result getTypeTime(@RequestParam("type") String type);


}
